import request from '../../utils/request';

// 获取帐号列表数据
export function getAccountList (params){
    return request({
    url:'/sys/news/findNewsListByPage.do',
        method: 'post',
        data: params,
        headContype:true
    });
};


//管理员添加 账号信息
export function adminAddAccount (params){
    return request({
        url:'/sys/news/add.do',
        method: 'post',
        data: params,
        headContype:true
    });
};


// 查看详情
export function lookAccountDetail (params){
    return request({
        url:'/sys/news/getNews.do',
        method: 'get',
        params: params
    });
};

// 单个删除帐号列表
export function siginDelAcount (params){
    return request({
        url:'/sys/news/delete.do',
        method: 'DELETE',
        params: params
    });
};


//编辑账号信息
export function editAccount (params){
    return request({
        url:'/sys/news/edit.do',
        method: 'post',
        data: params,
        headContype:true
    });
};
